import java.util.Scanner;

public class Cash implements PaymentType
{
   public void makePayment(double totalPayment)
   {
      Scanner in = new Scanner(System.in);
      
      System.out.println("Insert Cash: ");
      double inserted = in.nextDouble();
      
      double change = (totalPayment - inserted) * (-1); 
      System.out.println("Change Dispensed: " + change);
   }
}
